package hr.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import hr.utils.CommonUtils;
import lombok.Data;

@Data
public class EmployeeDepartForm {
    private Long id;
    private Long employeeId;
    private String name;
    private Long departDate;
    private String departDateStr;
    private String departReason;
    private Long departState;
    // @TableField(exist = false)
    private String departStateStr;
    private String departMentStr;
    private Long departMent;

    public void setDepartDate(Long departDate) {
        this.departDate = departDate;
        this.departDateStr = CommonUtils.convertTimestampToYMD(departDate);
    }
}